<template>
    <div class="weekends">
        <div class="title">周末去哪儿</div>
        <ul>
            <li v-for="item in list" :key="item.id">
                <div class="item">
                    <div class="item-img-wrap">
                        <img :src="item.imgUrl" alt="">
                    </div>
                    <div>
                        <p class="item-title">{{item.title}}</p>
                        <p class="item-desc">{{item.desc}}</p>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</template>
<script>
export default {
  name: 'HomeWeekends',
  props: {
    list: Array
  }
}
</script>
<style lang="stylus" scoped>
@import '~@/assets/styles/mixins.styl'
    .title
        line-height .8rem
        margin-top .2rem
        background-color #eee
        text-indent: .2rem
    .item
        margin-top .2rem
        .item-img-wrap
            height 0
            overflow hidden
            padding-bottom 37%
            img
                width 100%
        .item-title
            margin-top .12rem
            line-height .54rem
            font-size .37rem
            ellipsis()
        .item-desc
            line-height .4rem
            color #ccc
            ellipsis()
</style>
